#pragma once
#include <QtWidgets/QWidget>
#include "../mray0.3/MRay.h"

struct PathTracerWidget : public QWidget {
	PathTracerWidget(QWidget* parent = nullptr);
	void paintEvent(QPaintEvent* e);
	void mousePressEvent(QMouseEvent* e);
	void keyPressEvent(QKeyEvent * e);

private:
	mray::MRay		m_mray;
	QImage			m_image;
	bool			m_refreash;
};